<?php
$this->layout='';
if(empty($attributes)){
$response='empty'    ;
}else{
    $n=$meta['n'];
    foreach($attributes as $value){
        echo $this->Form->input('Attribute.'.$n.'.tag_id',array('type'=>'hidden','value'=>$meta['id']));
        echo $this->Form->input('Attribute.'.$n.'.attribute',array('type'=>'hidden','value'=>$value['Tag']['title']));
        echo $this->Form->input('Attribute.'.$n.'.value',array('label'=>$value['Tag']['title'],'class'=>'attribute'));
        $n++;
    }
    
}


?>
